package sessionbeans;

import javax.ejb.Remote;
import java.util.List;
import entities.AskForAdding;

@Remote
public interface AdminBeanRemote {

	/**
	 * 
	 * @param userId the admin's id
	 * @param password the new password
	 * @return true if the admin's password has been successfully updated, false otherwise 
	 */
	boolean changePassword(String userId, String password);
	
	/**
	 * 
	 * @param abilityName the name of the new ability
	 * @return "already existing ability" | "bad ability name" | "ability added successfully"
	 */
	String addAbility(String abilityName);
	
	/**
	 * 
	 * @return a list of all pending ability adding requests
	 */
	List<AskForAdding> getAbilityRequests();
}
